package com.quick.exception;

public class QuickException extends RuntimeException{
	private static final long serialVersionUID = 1L;
	private int code;
	private String message;
	
	@SuppressWarnings("unused")
	private QuickException(int code,Integer statusType,String message) {
		super(message);
		this.code = code;
		this.message = message;
	}
	
	public QuickException(QuickStateEnum state) {
		this.code = state.getCode();
		this.message = state.getMsg();
	}

	public int getCode() {
		return code;
	}
	
	@Override
	public String getMessage() {
		return message;
	}

}
